<?php $this->load->view('admin/portfolio/link_bar'); ?>
<script>
    function loadProduct(){
        var category=  document.getElementById('category');
        category = category.options[category.selectedIndex].value;
        window.location = "<?php echo base_url() ?>admin/portfolio/view/" + category;
        // alert(category);
    }
</script>
<div class="box_function"  style="display:none">
    <input type="text" name="txtKeyword" id="txtKeyword">  <input type="submit" name="txtKeyword" id="txtKeyword" value="Tìm">
</div>
<div class="box_function">
    <form method="post" action="{base_url}admin/product/delete" class="form">
        <table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
            <tr>
                <td width="33" class="tilte_list_pro">
                    <label>
                        <input name="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'categoryBox[]', this.checked)" type="checkbox">
                    </label></td>
                <td width="70" class="tilte_list_pro">Ảnh</td>
                <td class="tilte_list_pro">Tên dự án</td>
                <td align="center" width="60" class="tilte_list_pro">Hiển thị</td>
                <td width="70" class="tilte_list_pro">ACTION</td>
            </tr>
           
            {rows}
                <tr class="{css_class}">
                    <td class="product">
                        <label>
                            <input name="categoryBox[]" value="{id}" class="noborder" type="checkbox">
                        </label></td>
                    <td class="product">{image}</td>
                   
                    <td class="descriptiom">{name}</td>
                    
                    <td class="display">
                        <input type="checkbox" onclick="xajax_changeDisplay({id});" name="cd{id}" {check_active}>
                    </td>
                    <td class="action">
                        <a href="{base_url}admin/portfolio/edit/{id}">
                            <img src="{base_url}images/admin/edit.gif" alt="Edit" title="Edit" border="0">
                        </a>

                        <a href="{base_url}admin/portfolio/delete/{id}" onclick="return confirm('Delete item #{id}?');">
                            <img src="{base_url}images/admin/delete.gif" alt="Delete" title="Delete" border="0">
                        </a>
                    </td>
                </tr>
              {/rows}
        </table>

        <div style="padding-top:50px">
            <br><br>
            <input class="button" name="submitDelcategory" value="Delete selection" onclick="return confirm('Delete selected items?');" type="submit">
        </div>
    </form>
</div>

<?php echo $this->pagination->create_links(); ?>